import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:goodhouse/routes.dart';

class RegisterPage6 extends StatefulWidget {
  const RegisterPage6({Key? key}) : super(key: key);

  @override
  _RegisterPageState6 createState() => _RegisterPageState6();
}

class _RegisterPageState6 extends State<RegisterPage6> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('医美记录'),
        backgroundColor: Colors.purple,
        elevation: 0, // 移除阴影
      ),
      body: Column(
        children: [
          Column(
            children: List.generate(3, (index) { // 假设有10条医美记录
              return Card(
                color: Colors.purple[100], // 卡片背景色为浅紫色
                elevation: 4.0,
                child: Padding(
                  padding: const EdgeInsets.all(16.0),
                  child: Column(
                    crossAxisAlignment: CrossAxisAlignment.start,
                    children: [
                      Text(
                        '医美种类 ${index + 1}',
                        style: TextStyle(fontWeight: FontWeight.bold),
                      ),
                      SizedBox(height: 8.0),
                      Row(
                        children: [
                          Text('美容时间: 2023-04-${index + 1}'),
                          SizedBox(width: 16.0),
                          Text('支付状态: 已支付'),
                        ],
                      ),
                      SizedBox(height: 8.0),
                      Row(
                        mainAxisAlignment: MainAxisAlignment.spaceBetween,
                        children: [
                          Text('美容金额: ￥${(index + 1) * 500.0}'),
                          Text('美容地点: 美丽之都'),
                        ],
                      ),
                      SizedBox(height: 8.0),
                      Row(
                        children: [
                          Text('负责医生: Dr. Purple'),
                          SizedBox(width: 16.0),
                          Text('评论: 非常满意！'),
                        ],
                      ),
                    ],
                  ),
                ),
              );
            }),
          ),
        ],
      ),
      bottomNavigationBar: BottomNavigationBar(
        showSelectedLabels: true,
        // 如果想要隐藏选中时的文字
        showUnselectedLabels: true,
        // 如果想要显示未选中时的文字
        type: BottomNavigationBarType.fixed,

        selectedItemColor: Colors.purple,
        // 选中项的颜色
        unselectedItemColor: Colors.grey,
        // 未选中项的颜色

        items: const <BottomNavigationBarItem>[
          BottomNavigationBarItem(
            icon: Icon(Icons.local_hospital),
            label: '医美记录',
          ),
          BottomNavigationBarItem(
            icon: Icon(Icons.home),
            label: '首页',
          ),
          BottomNavigationBarItem(
            icon: Icon(Icons.face),
            label: '我的',
          ),
        ],
      ),
    );
  }
}




